package com.kotlin.tsw.baselibrary.persenter

import android.content.Context
import com.kotlin.base.utils.NetWorkUtils
import com.kotlin.tsw.baselibrary.persenter.view.BaseView
import com.trello.rxlifecycle.LifecycleProvider
import javax.inject.Inject

open class BasePresenter <T : BaseView> {
    lateinit var mView: T
    @Inject
    lateinit var lifecycleProvider: LifecycleProvider<*>
    @Inject
    lateinit var context:Context
    fun checkNetWork():Boolean{
        return NetWorkUtils.isNetWorkAvailable(context)
    }
}